<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module Parking</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>Parking</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/geoff/workspace/svn/trunk/DreamPark/modele/Parking.py">/home/geoff/workspace/svn/trunk/DreamPark/modele/Parking.py</a></font></td></tr></table>
    <p><tt>Created&nbsp;on&nbsp;21&nbsp;nov.&nbsp;2014<br>
&nbsp;<br>
@author:&nbsp;Damien&nbsp;Torond&nbsp;et&nbsp;Geoffrey&nbsp;Sentost<br>
Module&nbsp;<a href="#Parking">Parking</a></tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="modele.Niveau.html">modele.Niveau</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="Parking.html#Parking">Parking</a>
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Parking">class <strong>Parking</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>La&nbsp;classe&nbsp;<a href="#Parking">Parking</a>&nbsp;modelise&nbsp;un&nbsp;parking&nbsp;avec&nbsp;ses&nbsp;differents&nbsp;niveaux&nbsp;et&nbsp;places.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Parking-__init__"><strong>__init__</strong></a>(self, ctrlBdd, pNbNiv, pNbPlaces, pPrix, bool)</dt><dd><tt>Constructeur&nbsp;de&nbsp;la&nbsp;classe&nbsp;<a href="#Parking">Parking</a>.<br>
Attributs:<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;presentDansBdd&nbsp;de&nbsp;type&nbsp;booleen,&nbsp;verifie&nbsp;si&nbsp;le&nbsp;parking&nbsp;a&nbsp;ete&nbsp;cree&nbsp;dans&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nbPlacesCapacite&nbsp;de&nbsp;type&nbsp;int,&nbsp;capacite&nbsp;du&nbsp;parking.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nbPlacesParNiv&nbsp;de&nbsp;type&nbsp;int,&nbsp;capacite&nbsp;de&nbsp;places&nbsp;par&nbsp;niveaux.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nbNiv&nbsp;de&nbsp;type&nbsp;int,&nbsp;nombre&nbsp;de&nbsp;niveau&nbsp;dans&nbsp;le&nbsp;parking.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;listeNiveaux&nbsp;de&nbsp;type&nbsp;list,&nbsp;liste&nbsp;des&nbsp;niveaux.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;listeAbo&nbsp;de&nbsp;type&nbsp;list,&nbsp;liste&nbsp;des&nbsp;abonnements.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;nbAcces&nbsp;de&nbsp;type&nbsp;int&nbsp;initialise&nbsp;a&nbsp;2,&nbsp;nombre&nbsp;d'acces&nbsp;au&nbsp;parking.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;prixPlace&nbsp;de&nbsp;type&nbsp;int,&nbsp;prix&nbsp;de&nbsp;la&nbsp;place.<br>
&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;bdd&nbsp;instance&nbsp;de&nbsp;CtrlBdd.</tt></dd></dl>

<dl><dt><a name="Parking-addPlacement"><strong>addPlacement</strong></a>(self, voiture, imageVoiture, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture,&nbsp;imageVoiture&nbsp;et&nbsp;CtrlBdd.<br>
Permet&nbsp;d'ajouter&nbsp;un&nbsp;placement&nbsp;en&nbsp;fonction&nbsp;des&nbsp;dimensions&nbsp;de&nbsp;la&nbsp;voiture.<br>
Elle&nbsp;retourne&nbsp;0&nbsp;ou&nbsp;1&nbsp;en&nbsp;fonction&nbsp;qu'on&nbsp;est&nbsp;trouver&nbsp;une&nbsp;place&nbsp;ideale&nbsp;ou&nbsp;non.</tt></dd></dl>

<dl><dt><a name="Parking-addPlacementSuperAbo"><strong>addPlacementSuperAbo</strong></a>(self, voiture, imageVoiture, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture,&nbsp;imageVoiture&nbsp;et&nbsp;CtrlBdd.<br>
Permet&nbsp;d'ajouter&nbsp;un&nbsp;placement&nbsp;permanent&nbsp;a&nbsp;un&nbsp;superAbonne,&nbsp;en&nbsp;fonction&nbsp;des&nbsp;<br>
dimensions&nbsp;de&nbsp;la&nbsp;voiture.<br>
On&nbsp;met&nbsp;a&nbsp;jour&nbsp;les&nbsp;informations&nbsp;de&nbsp;la&nbsp;place&nbsp;sur&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees.</tt></dd></dl>

<dl><dt><a name="Parking-ajouterNiveau"><strong>ajouterNiveau</strong></a>(self, num)</dt><dd><tt>Methode&nbsp;:&nbsp;attend&nbsp;un&nbsp;numero&nbsp;en&nbsp;parametre.<br>
Permet&nbsp;d'ajouter&nbsp;un&nbsp;niveau&nbsp;au&nbsp;parking,&nbsp;un&nbsp;numero&nbsp;et&nbsp;un&nbsp;nombre&nbsp;de&nbsp;places.<br>
On&nbsp;ajoute&nbsp;le&nbsp;niveau&nbsp;a&nbsp;la&nbsp;liste&nbsp;listeNiveaux.</tt></dd></dl>

<dl><dt><a name="Parking-decrementer"><strong>decrementer</strong></a>(self)</dt><dd><tt>Methode:permet&nbsp;de&nbsp;decrementer&nbsp;le&nbsp;nombre&nbsp;de&nbsp;places&nbsp;libres.</tt></dd></dl>

<dl><dt><a name="Parking-estPlein"><strong>estPlein</strong></a>(self)</dt><dd><tt>Methode:&nbsp;on&nbsp;verifie&nbsp;si&nbsp;le&nbsp;parking&nbsp;est&nbsp;plein&nbsp;(places&nbsp;libres&nbsp;inferieurs&nbsp;a&nbsp;0).</tt></dd></dl>

<dl><dt><a name="Parking-getListeAbo"><strong>getListeAbo</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;listeAbo&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-getNbAcces"><strong>getNbAcces</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nbAcces&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-getNbNiveaux"><strong>getNbNiveaux</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nbNiv&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-getNbPlacesCapacite"><strong>getNbPlacesCapacite</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nbPlacesCapacite&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-getNbPlacesLibres"><strong>getNbPlacesLibres</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;nbPlacesLibres&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-getPlace"><strong>getPlace</strong></a>(self, numNiv, numPlace)</dt><dd><tt>Methode&nbsp;:&nbsp;attend&nbsp;un&nbsp;numero&nbsp;de&nbsp;niveau&nbsp;et&nbsp;de&nbsp;place&nbsp;en&nbsp;parametre.<br>
Permet&nbsp;de&nbsp;recuperer&nbsp;une&nbsp;place&nbsp;specifique&nbsp;et&nbsp;retourne&nbsp;donc&nbsp;une&nbsp;place.</tt></dd></dl>

<dl><dt><a name="Parking-getPrixPlace"><strong>getPrixPlace</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;accesseur&nbsp;de&nbsp;l'attribut&nbsp;prixPlace&nbsp;qui&nbsp;retourne&nbsp;celui-ci.</tt></dd></dl>

<dl><dt><a name="Parking-incrementer"><strong>incrementer</strong></a>(self)</dt><dd><tt>Methode:permet&nbsp;d'incrementer&nbsp;le&nbsp;nombre&nbsp;de&nbsp;places&nbsp;libres.</tt></dd></dl>

<dl><dt><a name="Parking-peutEtrePlacee"><strong>peutEtrePlacee</strong></a>(self, voiture, bdd)</dt><dd><tt>Methode:&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture&nbsp;et&nbsp;de&nbsp;CtrlBdd.<br>
Verifie&nbsp;si&nbsp;la&nbsp;voiture&nbsp;peut&nbsp;etre&nbsp;placee&nbsp;ou&nbsp;non,&nbsp;en&nbsp;fonction&nbsp;que&nbsp;le&nbsp;parking&nbsp;est&nbsp;plein&nbsp;ou&nbsp;non.</tt></dd></dl>

<dl><dt><a name="Parking-placementTrouve"><strong>placementTrouve</strong></a>(self, voiture, bdd)</dt><dd><tt>Methode:&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture&nbsp;et&nbsp;de&nbsp;CtrlBdd.<br>
Verifie&nbsp;si&nbsp;la&nbsp;un&nbsp;placement&nbsp;a&nbsp;ete&nbsp;trouve&nbsp;pour&nbsp;une&nbsp;voiture,&nbsp;en&nbsp;verifiant&nbsp;si&nbsp;le&nbsp;client&nbsp;est&nbsp;superAbonne<br>
(la&nbsp;place&nbsp;sera&nbsp;trouve&nbsp;directement&nbsp;car&nbsp;placement&nbsp;permanent).<br>
On&nbsp;cherche&nbsp;alors&nbsp;la&nbsp;place&nbsp;ideale&nbsp;pour&nbsp;la&nbsp;voiture.</tt></dd></dl>

<dl><dt><a name="Parking-remplirListeNiveaux"><strong>remplirListeNiveaux</strong></a>(self)</dt><dd><tt>Methode&nbsp;:&nbsp;On&nbsp;incremente&nbsp;un&nbsp;compteur&nbsp;afin&nbsp;de&nbsp;pouvoir&nbsp;ajouter&nbsp;un&nbsp;niveau&nbsp;en&nbsp;plus&nbsp;(nombre&nbsp;de&nbsp;niveaux).</tt></dd></dl>

<dl><dt><a name="Parking-sortirPlace"><strong>sortirPlace</strong></a>(self, voiture, bdd)</dt><dd><tt>Methode&nbsp;:&nbsp;attend&nbsp;une&nbsp;instance&nbsp;de&nbsp;la&nbsp;classe&nbsp;Voiture&nbsp;et&nbsp;de&nbsp;CtrlBdd.<br>
Permet&nbsp;de&nbsp;sortir&nbsp;de&nbsp;la&nbsp;place&nbsp;et&nbsp;de&nbsp;la&nbsp;liberer.<br>
Met&nbsp;a&nbsp;jour&nbsp;la&nbsp;base&nbsp;de&nbsp;donnees.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table></td></tr></table>
</body></html>